import math
s = 0
t = 1
for i in range(1, 6):
    t *= i
    s += t
    # if i == 3:
    #     break
else:
    print('for', s)

s = 0
t = 1
i = 1
while i < 6:
    t *= i
    s += t
    i += 1
    
print(s)
